package com.xiaotao.service;

import com.xiaotao.entity.Merchant;
import com.xiaotao.util.ResponseUtil;
import org.springframework.web.multipart.MultipartFile;

public interface MerchantService {
    ResponseUtil save(Merchant merchant);

    ResponseUtil login(Merchant merchant);

    ResponseUtil findAll(Integer pageNum,Integer pageSize);

    ResponseUtil delete(Integer id);

    ResponseUtil findById(Integer id);

    ResponseUtil uploadImage(MultipartFile file, String bucketName) throws Exception;

    ResponseUtil searchByKeyWord(String keyword,Integer status,Integer pageNum,Integer pageSize);

    ResponseUtil update(Merchant merchant);

    ResponseUtil findAll2();
}
